﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace WindowsFormsXIANGMU
{
    public partial class FormTJ : Form
    {
        public FormTJ()
        {
            InitializeComponent();
        }

        private void FormTJ_Load(object sender, EventArgs e)
        {
            //string sql = "select * from BirthdayCT";
            //DataTable table = DBHelper.hehe(sql);
            //dataGridView1.AutoGenerateColumns = false;
            //dataGridView1.DataSource = table;
        }

        private void button1_Click(object sender, EventArgs e)
        {
            string sql = string.Format("insert into BirthdayCT values('{0}','{1}','{2}','{3}','{4}','{5}')", textBox2.Text, textBox3.Text, textBox4.Text, textBox5.Text, textBox6.Text, textBox7.Text);
            bool rs = DBHelper.GetExecuteNonQuery(sql);
            MessageBox.Show("添加成功");
        }
    }
}
